<%= content_for :header_nav do %>
  <%= render "imports/nav", import: @import %>
<% end %>

<%= content_for :previous_path, import_confirm_path(@import) %>

<% if @import.importing? %>
  <%= render "imports/importing", import: @import %>
<% elsif @import.complete? %>
  <%= render "imports/success", import: @import %>
<% elsif @import.failed? %>
  <%= render "imports/failure", import: @import %>
<% elsif @import.revert_failed? %>
  <%= render "imports/revert_failure", import: @import %>
<% else %>
  <%= render "imports/ready", import: @import %>
<% end %>
